{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="" method="post" enctype="multipart/form-data">
{% csrf_token %}
    作者姓名:<input type="text" name="name" value="{{ author.name }}">
<br>
性别:{{ author.get_sex_display }}
    {% if author.sex %}

        男<input type="radio" name="sex" value="1" checked>
        女<input type="radio" name="sex" value="0">
    {% else %}
        男<input type="radio" name="sex" value="1" >
        女<input type="radio" name="sex" value="0" checked>
    {% endif %}


    <br>
出生日期:
<input type="date" name="birthday">



<br>
头像:<img src="{% static author.icon %}" alt="暂无图片" height="100px">
<br>
    <input type="file" name="icon">
电话:<input type="text" name="phone" value="{{ author.phone }}">
<br>
作者简介:<textarea name="brief" id="brief" cols="30" rows="10">{{ author.brief }}</textarea>
<br>

<input type="submit" value="提交">

</form>
</body>
</html>